"""
    常量文件
"""


# 任务状态
TASK_STATUS = {
    "waiting": 0,
    "doing": 1,
    "success": 2,
    "failed": 3,
}


# 分割文本的方式
SPLIT_TEXT_METHOD = {
    "separators": "标点符号",
    "chunk_size": "字符串长度"
}


# 百度查询参数，反爬虫用
BAIDU_SEARCH_PARAMS = {
    'ie': 'utf-8',
    'mod': '11',
    'isbd': '1',
    'isid': '89c06f1900072ff3',
    'f': '8',
    'rsv_bp': '1',
    'rsv_idx': '1',
    'tn': '62095104_26_oem_dg',
    'fenlei': '256',
    'rsv_pq': '89c06f1900072ff3',
    'rsv_t': '7ed75Dg2R6pu0p4jGLrvHxUlBt9l2GUGnrcy1XFvlBfdohbdO3HgjXD8Qw3YMo/dfu2MHPcv1Y7r',
    'rqlang': 'cn',
    'rsv_enter': '0',
    'rsv_dl': 'tb',
    'rsv_btype': 't',
    'inputT': '6536190',
    'rsv_sug3': '28',
    'rsv_sid': '26350',
    '_ss': '1',
    'clist': 'dc3fab9f3fea43d4',
    'hsug': '',
    'csor': '27',
    'pstg': '5',
    '_cr1': '42506',
}


s = ("https://www.baidu.com/s"
     "?wd=apple"
     "&rsv_spt=1"
     "&rsv_iqid=0xb55e5d030019db53"
     "&issp=1"
     "&f=8"
     "&rsv_bp=1"
     "&rsv_idx=2"
     "&ie=utf-8"
     "&tn=baiduhome_pg"
     "&rsv_dl=tb"
     "&rsv_enter=1"
     "&rsv_sug3=6"
     "&rsv_sug1=1"
     "&rsv_sug7=100"
     "&rsv_sug2=0"
     "&rsv_btype=i"
     "&prefixsug=apple"
     "&rsp=5"
     "&inputT=1672"
     "&rsv_sug4=2033")
